package cc.rengu.igas.bsps.common.enums;

/**
 * 业务响应码枚举类
 * Created by 王成 on 2018/5/29.
 */
public enum RespCodeEnum {
    TRANS_SUCCESS("00000000", "交易成功"),
    MSG_VALID_CHECK_ERROR("ER11BS01", "参数为空或参数非法"),
    GET_ORIG_TXN_INFO_ERROR("ER12BS01", "获取原交易流水失败"),
    REFUND_AMT_OVER_LIMIT("ER12BS02", "退款金额超出金额限制"),
    ORIG_TXN_PROCESS_FAIL("ER12BS03", "原交易处理失败"),
    REGISTER_USER_INFO_ERROR("ER12BS04", "注册用户失败"),
    USER_ALREADY_REGISTER("ER12BS05", "用户已注册"),
    GET_USER_INFO_ERROR("ER12BS06", "用户名或密码错误"),
    GEN_SMS_CODE_ERROR("ER12BS07", "生成短信验证码失败"),
    GET_SMS_INFO_ERROR("ER12BS08", "获取短信验证码信息失败"),
    SMS_CODE_EXPIRED("ER12BS09", "验证码已过期"),
    TEL_NO_IS_DIFF("ER12BS10", "手机号码不一致"),
    VERIFY_SMS_CODE_ERROR("ER12BS11", "短信验证码验证失败"),
    USER_PASSWORD_ERROR("ER12BS12", "密码错误，请重试"),
    USER_PASSWORD_MODIFY_ERROR("ER12BS13", "密码修改失败"),
    REGISTER_USER_LOGIN_INFO_ERROR("ER12BS14", "登记用户登录表失败"),
    GET_USER_ROLE_INFO_ERROR("ER12BS15", "获取用户角色信息失败"),
    USER_ALREADY_BIND_MCHNT("ER12BS16", "用户已经绑定商户"),
    USER_BIND_MCHNT_ERROR("ER12BS17", "用户绑定商户失败"),
    GET_USER_BIND_INFO_ERROR("ER12BS18", "获取用户绑定商户信息失败"),
    GET_THIRD_MCHNT_KEY_ERROR("ER12BS19", "获取第三方商户密钥失败"),
    USER_LOGIN_ERROR_OVERRUN("ER12BS20", "用户登录失败次数超限"),
    GET_MCHNT_ORDER_INFO_ERROR("ER12BS21", "获取商户订单信息失败"),
    GET_PAY_ORDER_INFO_ERROR("ER12BS22", "获取商户订单信息失败"),
    ORDER_CANT_REFUND("ER12BS23", "当前订单不允许退款"),
    UPDATE_ORDER_STATUS_ERROR("ER12BS24", "更新支付订单失败"),
    MCHNT_INFO_NOT_FOUND("ER12BS25", "获取商户信息失败"),
    MCHNT_STATUS_ABNORMAL("ER12BS26", "商户状态异常"),
    CALL_BIZ_SERVICE_ERROR("ER12BS27", "调用业务系统处理失败"),
    CHANNEL_TXN_NOT_SUPPORTED("ER12BS28", "通道不支持该交易"),
    SMS_CODE_ALREADY_USED("ER12BS29", "验证码已使用"),
    NON_MCHNT_ARTIF_OR_SHOP_OWNER("ER12BS30", "非商户法人或者店长,无此权限"),
    ACCT_REAL_NAME_AUTH_ERROR("ER12BS31", "账户实名验证失败"),
    GENERATE_QRCODE_ERROR("ER12BS32", "生成二维码失败"),
    REGISTER_QRCODE_INFO_ERROR("ER12BS33", "登记二维码信息失败"),
    GET_QRCODE_INFO_ERROR("ER12BS34", "获取二维码信息失败"),
    QRCODE_ALREADY_BINDED("ER12BS35", "二维码已绑定"),
    BIND_QRCODE_ERROR("ER12BS36", "绑定二维码失败"),
    UPDATE_QRCODE_INFO_ERROR("ER12BS37", "更新二维码信息失败"),
    SEND_SMS_CODE_ERROR("ER12BS38", "发送短信验证码失败"),
    GET_QR_MCHNT_INFO_ERROR("ER12BS39", "获取二维码商户信息失败"),
    UPDATE_QR_MCHNT_INFO_ERROR("ER12BS40", "更新二维码商户信息失败"),
    QUERY_QR_TRANS_STATUS_ERROR("ER12BS41", "查询二维码交易状态失败"),
    GENERATE_SEQ_NO_ERROR("ER12GSNR", "生成数据库SEQUENCE失败"),
    GENERATE_MCHNT_QRCODE_ERROR("ER12BS42", "生成商户收款聚合码失败"),
    USER_NO_AUTHORITY("ER12BS43", "用户无权限"),
    GET_ORDER_SEQ_NUM_ERROR("ER12BS44", "获取支付订单序号失败"),
    INSERT_ORDER_INFO_ERROR("ER12BS45", "登记支付订单信息失败"),
    INSERT_TXN_EXPAND_ERROR("ER12BS46", "登记支付拓展表失败"),
    NO_QRCODE_AVAILABLE("ER12BS47", "银联二维码库存不足"),
    APPLY_EVENT_SEQ_ERROR("ER12BS48", "申请事件编号失败"),
    INSERT_EVENT_INFO_ERROR("ER12BS49", "登记事件申报信息失败"),
    QUERY_EVENT_INFO_ERROR("ER12BS50", "查询事件申报信息失败"),
    MCHNT_ACCT_DETAIL_EMPTY("ER12BS51", "商户入账明细为空"),
    QUERY_MCHNT_SIGN_INFO_ERROR("ER12BS52", "获取商户签约信息失败"),
    MCHNT_SETTLE_ACCT_NOT_FOUND("ER12BS53", "获取商户结算账户信息失败"),
    QUERY_MCHNT_IMAGE_INFO_ERROR("ER12BS54", "获取商户签约影像信息失败"),
    QUERY_MCHNT_PROD_INFO_ERROR("ER12BS55", "获取商户支付产品信息失败"),
    NOT_SUPPORT_ORT_TYPE("ER12BM56", "不支持的操作类型"),
    INSERT_MCHNT_BASE_INFO_ERROR("ER12BS57", "登记商户基本信息失败"),
    UPDATE_MCHNT_BASE_INFO_ERROR("ER12BS58", "商户基本信息更新失败"),
    INSERT_MCHNT_SIGN_INFO_ERROR("ER12BS59", "登记商户签约信息失败"),
    UPDATE_MCHNT_SIGN_INFO_ERROR("ER12BS60", "商户签约信息更新失败"),
    INSERT_MCHNT_ACCT_INFO_ERROR("ER12BS61", "登记商户结算信息失败"),
    UPDATE_MCHNT_ACCT_INFO_ERROR("ER12BS62", "商户结算信息更新失败"),
    INSERT_MCHNT_IMAGE_INFO_ERROR("ER12BS63", "商户结算信息更新失败"),
    UPDATE_MCHNT_IMAGE_INFO_ERROR("ER12BS64", "商户结算影像更新失败"),
    QUERY_MCHNT_TERM_INFO_ERROR("ER12BS65", "商户终端信息不存在"),
    INSERT_MCHNT_TERM_INFO_ERROR("ER12BS66", "登记商户终端信息失败"),
    UPDATE_MCHNT_TERM_INFO_ERROR("ER12BS67", "商户终端信息更新失败"),
    INSERT_MCHNT_PROD_INFO_ERROR("ER12BS68", "登记支付产品信息失败"),
    UPDATE_MCHNT_PROD_INFO_ERROR("ER12BS69", "更新支付产品信息失败"),
    INSERT_MCHNT_LIMIT_INFO_ERROR("ER12BS70", "登记商户限额限次信息失败"),
    UPDATE_MCHNT_LIMIT_INFO_ERROR("ER12BS71", "更新商户限额限次信息失败"),
    INSERT_MCHNT_TXN_AUTH_ERROR("ER12BS72", "登记商户交易权限控制信息失败"),
    UPDATE_MCHNT_TXN_AUTH_ERROR("ER12BS73", "更新商户交易权限控制信息失败"),
    INSERT_MCHNT_FEE_INFO_ERROR("ER12BS74", "登记商户手续费规则信息失败"),
    UPDATE_MCHNT_FEE_INFO_ERROR("ER12BS75", "更新商户手续费规则信息失败"),
    FILE_NOT_EXIST("ER12BS76", "文件不存在"),
    UPDATE_EVENT_INFO_ERROR("ER12BS77", "更新事件申报信息失败"),
    REGISTER_EVENT_LOG_ERROR("ER12BS78", "登记事件申报操作日志失败"),
    INSERT_USER_ROLE_ERROR("ER12BS79", "登记用户角色信息失败"),
    UPDATE_USER_ROLE_ERROR("ER12BS80", "更新用户角色信息失败"),
    INSERT_INVOICE_INFO_ERROR("ER12BS81", "登记发票信息失败"),
    UPDATE_INVOICE_INFO_ERROR("ER12BS82", "更新发票信息失败"),
    INSERT_INVOICE_LOG_ERROR("ER12BS83", "登记发票开票记录失败"),
    QUERY_INVOICE_LOG_ERROR("ER12BS84", "查询发票开票记录失败"),
    SEND_EMAIL_ERROR("ER12BS85", "发送邮件失败"),
    FACE_DETECT_ERROR("ER12BS86", "人脸图像识别检测失败"),
    UPDATE_USER_INFO_ERROR("ER12BS87", "更新用户信息失败"),
    UPDATE_USER_BIND_INFO_ERROR("ER12BS88", "更新用户绑定信息失败"),
    INSERT_SIGN_ACCT_INFO_ERROR("ER12BS89", "登记签约信息失败"),
    QUERY_SIGN_ACCT_INFO_ERROR("ER12BS90", "查询签约信息失败"),
    UPDATE_SIGN_ACCT_INFO_ERROR("ER12BS91", "更新签约信息失败"),
    USER_MCHNT_BIND_INFO_ERROR("ER12BS92", "用户绑定商户信息查询失败"),
    VOICE_BIND_INFO_ERROR("ER12BS93", "语音设备绑定失败"),
    VOICE_INFO_QUERY_ERROR("ER12BS94", "语音设备查询失败"),
    IMAGE_NOT_MEET_STANDARD("ER12INMS", "图片不符合限制要求"),
    INSERT_MER_WECHAT_ERROR("ER12BSA6", "登记微信商户信息失败"),
    UPDATE_MER_WECHAT_ERROR("ER12BSA7", "微信商户信息更新失败"),
    QUERY_MER_WECHAT_ERROR("ER12BSA8", "查询微信商户信息失败"),
    INSERT_MER_ALI_ERROR("ER12BSA9", "登记支付宝商户信息失败"),
    UPDATE_MER_ALI_ERROR("ER12BSB1", "微信支付宝信息更新失败"),
    QUERY_MER_ALI_ERROR("ER12BSB2", "查询支付宝商户信息失败"),
    QUERY_FEE_RULE_ERROR("ER12BSB3", "查询费率模板信息失败"),
    QUERY_DIS_FEE_RULE_ERROR("ER12BSB4", "查询手续费优惠信息失败"),
    QUERY_ORGANIZATION_ERROR("ER12BSB9", "获取机构信息失败"),
    QUERY_INDUSTRY_ERROR("ER12BSC0", "获取行业类别信息失败"),
    QUERY_AREAINFO_ERROR("ER12BSC1", "获取地区代码信息失败"),
    MCHNT_INBLACK_ERROR("ER12BSC2", "黑名单商户拒绝交易"),
    QUERY_BUSIINFO_ERROR("ER12BSC3", "获取业务产品代码信息失败"),
    QUERY_NULL("ER12BSC4", "信息查询结果为空"),
    QUERY_STATUS_ERROR("ER12BSC5", "状态非法"),
    PARAM_IS_NULL("ER12BSC6", "传入参数为空"),
    PARAM_IS_ERROR("ER12BSC7", "传入参数非法"),
    DECRYP_SECRET_ERROR("ER12BSC8", "解密失败"),
    WITHDRAWAL_AMT_OVER_LIMIT("ER12BSC9", "交易金额超出可用余额"),
    SMS_CODE_CHECK_ERROR("ER12BSD0", "短信验证码校验失败"),
    GET_DEVBINDINFO_ERROR("ER12BSD1", "设备绑定信息为空"),
    UNBIND_DEVBINDINFO_ERROR("ER12BSD2", "解绑绑定设备失败"),
    GET_INSPECT_TASK_DETAIL_ERROR("ER12BSD3", "商户巡检任务详情信息为空"),
    GET_INSPECT_TASK_INFO_ERROR("ER12BSD4", "巡检任务信息为空"),
    UPDATE_INSPECT_TASK_DETAIL_ERROR("ER12BSD5", "更新商户巡检任务详情信息失败"),
    INSERT_INSPECT_TASK_REGISTER_ERROR("ER12BSD6", "登记商户自助巡检信息失败"),
    INSERT_MANAGER_INFO_ERROR("ER12BSD7", "新增拓展经理信息失败"),
    UPDATE_MANAGER_INFO_ERROR("ER12BSD8", "更新拓展经理信息失败"),
    GET_MANAGER_INFO_ERROR("ER12BSD9", "拓展经理信息不存在"),
    GET_APPLY_INFO_ERROR("ER12BSE0", "查询商户申请信息失败"),
    UPDATE_APPLY_INFO_ERROR("ER12BSE1", "更新商户申请信息失败"),
    QUERY_MCHNT_BASE_INFO_ERROR("ER12BSE2", "查询商户基本信息失败"),
    BIND_MCHNT_STATUS_ERROR("ER12BSE3", "用户绑定商户状态异常"),
    INSERT_DEVBIND_ERROR("ER12BSE4", "新增设备绑定信息失败"),
    USER_LOGIN_QRCODE_ERROR("ER12BSE5", "登录二维码过期"),
    INVALID_QRCODE_ERROR("ER12BSE6", "无效二维码"),
    EXPIRED_QRCODE_ERROR("ER12BSE7", "二维码已失效"),
    PAY_FAIL("ER12BSE8", "扫码收款交易失败"),
    MANAGER_EXIST_ERROR("ER12BSE9", "拓展经理已经存在"),
    MCHNT_SETTLE_ACCT_ERROR("ER12BSF0", "结算账户输入错误"),
    SYSTEM_ERROR("ER129999", "系统异常"),
    USER_NOT_LOGIN_OR_SESSION_IS_EXPIRED("ER13BS05", "用户未登录或会话已过期"),
    IMAGE_CODE_APPLY_ERROR("ER13BS13", "申请图片验证码失败"),
    IMAGE_CODE_VERIFY_ERROR("ER13BS14", "图片验证码验证失败"),
    NOT_CONF_MSG_TEMPLATE("ER13BS16", "未配置消息模板"),
    REGISTER_MCHNT_APPLY_INFO_ERROR("ER13BS19", "登记商户申请信息失败"),
    GET_MCHNT_KEY_ERROR("ER13BS23", "获取商户密钥失败"),
    RECORD_NOT_FOUND("ER13BS40", "操作记录不存在"),
    DATABASE_OPR_ERROR("ER13BS41", "数据库操作失败"),
    ILLEGAL_OPERATION("ER13BS42", "无此权限,非法操作"),
    NOT_CONF_CHANNEL_TXN_MAP("ER13BS46", "未配置通道通道服务调用配置"),
    CHANNEL_CONFIG_NOT_EXIST("ER13BS49", "获取通道服务调用配置信息失败"),
    GET_CARD_BIN_INFO_ERROR("ER13BS50", "获取卡BIN信息失败"),
    CALC_MCHNT_FEE_ERROR("ER13BS51", "计算商户手续费失败"),
    INST_SETTLE_ACCT_NOT_FOUND("ER13BS52", "获取机构内部账户信息失败"),
    MCHNT_NO_PERMISSION("ER13BS53", "商户无交易权限"),
    CALL_BIZ_SERVICE_TIMEOUR("ER129998", "业务处理超时"),
    GENERATE_SIGN_ERROR("ER10BS01", "生成数字签名失败"),
    VERIFY_SIGN_ERROR("ER10BS02", "校验数字签名失败"),
    TRANS_IN_PROGRESS("ER10BS03", "交易进行中"),
    MCHNT_NO_CASH_PERMISSION("ER10BS04", "商户未开通提现交易，请先申请提现交易权限"),
    MCHNT_CASH_FAIL("ER10BS05", "商户提现交易失败，请重新发起"),
    MCHNT_AUTH_INFO_NOT_FOUND("ER10BS06", "商户不支持该业务"),
    NOT_SURP_ACCTTYPE_ERROR("ER10BS07", "不支持的卡类型"),
    MCHNT_AMT_OVER("ER10BS08", "商户超限"),
    PASSWORD_INCONSISTENCY("ER10BS09", "新密码与确认密码不一致"),
    MCHNT_TYPE_ERROR("ER10BS10", "商户非连锁门店，无权新增店长"),
    QRCODE_EXIST_ERROR("ER10BS11", "二维码已绑定商户"),
    MCHNT_ALREADY_REGISTER("ER10BS12", "商户已注册用户"),
    MCHNT_CHANNEL_REGISTER("ER10BS13", "请在PC端进行注册或登录"),
    DATESPAN_CHECK_ERROR("ER10BS14", "跨度不能超过一个月，请重新选择"),
    MCHNT_APPLY_DONE_ERROR("ER10BS15", "商户已受理"),
    NO_REGISTER_ERROR("ER10BS16", "请先在微信公众号端进行商户注册或登录"),
    PASSWORD_CHECK_ERROR("ER10BS17", "密码与确认密码不一致"),
    SPECIAL_FEE_CANNOT_RECHARGE("ER10BS18", "特殊费率商户不允许充值"),
    MANAGER_VERIFY_ERROR("ER10BS19", "用户已认证拓展经理，无此功能操作权限"),
    MCHNT_VERIFY_ERROR("ER10BS20", "用户已认证绑定商户，无此功能操作权限"),
    CHAIN_MCHNT_STORE_CANNOT_OPERATE("ER10BS21", "连锁商户门店,不允许此操作"),
    AMOUNT_IS_UN_NORMAL("ER10BS22", "金额不正确,请检查"),
    COLLECT_VALUE_NOT_NULL_ERROR("ER11BS02", "<{}>不能为空"),
    MOBILE_USER_EXIST_ERROR("ER10BS23", "手机号未注册用户,请确认后重新登录"),
    PASSWORD_REPEAT_MODIFY_ERROR("ER10BS24", "新密码不能与旧密码重复"),
    ORIGINAL_PASSWORD_MODIFY_ERROR("ER10BS25", "原密码错误"),
    USER_EXIST_ERROR("ER10BS26", "用户不存在，请确认后重试"),
    CASHIER_UNBIND_ERROR("ER10BS27", "收银员解绑失败，请确认后重试"),
    CHAIN_STORE_NOT_INDEPENDENT_CANNOT_OPERATE("ER10BS28", "连锁商户门店,非独立维护,不允许此操作"),
    MCHNT_MANAGER_EXIST_ERROR("ER10BS29", "门店店长已存在"),
    MCHNT_STATUS_ABNORMAL_ADD_CASHIER_ERROR("ER10BS30", "商户状态异常,无法新增收银员/店长"),
    MCHNT_BASE_INFO_QUERY_ERROR("ER10BS31", "商户基本信息查询失败"),
    MCHNT_BASE_INFO_MANAGE_ERROR("ER10BS32", "商户基本信息管理失败"),
    REGION_INFO_QUERY_ERROR("ER10BS33", "行政区域信息查询失败"),
    PARAM_QUERY_ERROR("ER10BS34", "参数信息查询失败"),
    USER_INFO_QUERY_ERROR("ER10BS35", "用户信息查询失败"),
    ;
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
